package com.train.classeval.mapper;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.train.classeval.entity.Menu;
import com.train.classeval.entity.User;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author xs
 * @since 2021-09-11
 */
@Repository
public interface UserMapper extends BaseMapper<User> {


    /**
     * 通过用户名查询用户
     */
    User selectUserByUsername(String userName);

    /**
     * 查询所有用户
     * @return
     */
    List<User> findAllUser();


}
